/**
 * createTime: 2018/3/20 15:29
 * author: zhibin.zhao
 * description:
 */
var express = require('express')
var cookieParser = require('cookie-parser')

var app = express();

app.use(cookieParser());
app.get('/', function (req, res) {
    // res.cookie('name', {domain: '.example.com', path: '/admin', secure: true, expires: new Date(Date.now() + 900000), httpOnly: true});
    // res.cookie('name', '1', { maxAge: 900000, httpOnly: true });
    // console.log(req.cookies);
    // res.cookie('cart', {items: [1,2,3]});
    res.clearCookie('cart');
    res.send();
});

app.listen(3000);

